#!/bin/sh

DIR_MNT="/mnt/custom"
DIR_SYSTEM="${DIR_SYSTEM}/customcd/files"
TMP="/tmp/sysresccd-area31"

if [ ! -d ${TMP} ]; then
	mkdir -p ${TMP}
fi

echo -e "\n# Discos montados:\n" > ${TMP}/disks.txt
df -hT|egrep -wv '/livemnt|udev|none|shm|tmpfs' >> ${TMP}/disks.txt

echo -e "\n\n\n\n\n\n\n\n\n# SWAP ativa:\n" >> ${TMP}/disks.txt
cat /proc/swaps >> ${TMP}/disks.txt

dialog --title "RescueCD Area31 Tools" --exit-label OK --textbox "${TMP}/disks.txt" 28 95
